<?php
class AdModel extends Model
{
    public function getAd()
    {
        $this->loadTable('ads');
        return $this->tables['ads']->get(NULL,array('order' => array('a_order' => 'ASC')));
    }
}
?>